package com.soryin.entity;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * 地址Block
 * @author Hello_海生
 * @date 2014年3月6日
 */

@Entity
@Table(name="Soryin_B_Address")
public class AddressBlock{
	private int id;
	private Soryin SoryinId;
	private String city;		//城市
	private String district;	//地区
	private String GPS;			//GPS信息
	private String detailed;	//详细地址
	
	
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	@OneToOne(cascade=CascadeType.ALL,fetch=FetchType.LAZY)
	public Soryin getSoryinId() {
		return SoryinId;
	}
	public void setSoryinId(Soryin soryinId) {
		SoryinId = soryinId;
	}
	
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getDistrict() {
		return district;
	}
	public void setDistrict(String district) {
		this.district = district;
	}
	public String getGPS() {
		return GPS;
	}
	public void setGPS(String gPS) {
		GPS = gPS;
	}
	public String getDetailed() {
		return detailed;
	}
	public void setDetailed(String detailed) {
		this.detailed = detailed;
	}
	
	
	
}
